package com.hzit;

import com.hzit.pojo.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@SpringBootApplication
public class SpringBoot05Application {
	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(SpringBoot05Application.class);
		String[] beanNamesForType = run.getBeanNamesForType(User.class);
		String[] beanDefinitionNames = run.getBeanDefinitionNames();
		for (String beanDefinitionName : beanDefinitionNames) {
			System.out.println(beanDefinitionName);
		}
		System.out.println("-------------------------------------------");
		for (String s : beanNamesForType) {
			System.out.println(s);
		}
	}
}
